Skip to content

Comments

Use peak_sign in quality metrics.prepare_data to find template extremum#4403

Open
ecobost wants to merge 1 commit intoSpikeInterface:mainfrom
ecobost:peak_sign_pca
Open

Use peak_sign in quality metrics.prepare_data to find template extremum#4403
ecobost wants to merge 1 commit intoSpikeInterface:mainfrom
ecobost:peak_sign_pca

Conversation

@ecobost
Copy link
Contributor

@ecobost ecobost commented Feb 21, 2026

ComputeQualityMetrics has a peak_sign argument (similar to the one in ComputeTemplateMetrics), this PR sends it to get_template_extremum_channel in prepare_data. This affects pca_metrics (if set to "pos" or "both") as it will change how the neighborhood of each unit is defined (l.154), Default behavior, peak_sign='neg', is not changed.

Note: This was originally in #4363 but I took it out as peak_sign-related issues were gonna be taken care by #4374. As #4374 will be delayed I think it's worth having this in 0.104.0.

@ecobost ecobost changed the title Use peak_sign in quality metrics to find template extremum Use peak_sign in quality metrics.prepare_data to find template extremum Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant